<%--
  Created by IntelliJ IDEA.
  User: 14364
  Date: 2023/1/3
  Time: 20:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="../static/bootstrap-5.1.3-dist/css/bootstrap.css">
    <script type="text/javascript" src="../static/bootstrap-5.1.3-dist/js/bootstrap.js"></script>
    <title>上架新商品</title>
</head>

<style>
    .back{
        position: absolute;
        font-size: 26px;
        top:30px;
        left:40px;
        text-decoration: none;
        color: #000;
        font-weight: bold;
    }
    .back:hover{
        color: #000;
    }

    .card{
        width: 1400px;
        height: 700px;
        background-color: #fffdfd;
        border-radius: 30px;
        border: none;
        box-shadow: 5px 5px 10px #adabab;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
    }

    .add{
        padding: 80px 300px;
    }
    .mb-3{
        padding-bottom: 30px;
    }
    .btn button:nth-child(1){
        margin-right: 40px;
    }
</style>

<body>

<a href="${pageContext.request.contextPath}/admin/goods_list" class="back">
    <span><</span>返回</a>
<div class="card">
    <form action="goods_add" method="post" enctype="multipart/form-data" class="add">
        <div class="form-floating mb-3">
            <input type="text" class="form-control" name="name" id="floatingName" placeholder="商品名称">
            <label for="floatingName">商品名称</label>
        </div>
        <div class="form-floating mb-3">
            <input type="text" class="form-control" name="price" id="floatingPrice" placeholder="商品单价">
            <label for="floatingPrice">商品单价</label>
        </div>
        <div class="form-floating mb-3">
            <input type="text" class="form-control" name="description" id="floatingDescription" placeholder="商品描述">
            <label for="floatingDescription">商品描述</label>
        </div>
        <div class="mb-3 row">
            <label class="col-sm-2 col-form-label">商品照片</label>
            <div class="col-sm-10">
                <input type="file" class="form-control" name="photo">
            </div>
        </div>
        <div class="mb-3 row">
            <div class="btn">
                <button type="submit" class="btn btn-outline-success btn-lg">确认上架</button>&nbsp;&nbsp;&nbsp;
                <button type="reset" class="btn btn-outline-dark btn-lg">重 置</button>
            </div>
        </div>
    </form>
</div>
</body>
</html>
